package com.cbarmstrong.MarketWatcher;

import java.util.Comparator;

public class IndicatorComparitor implements Comparator<IndicatorChromosome> {

	@Override
	public int compare(IndicatorChromosome arg0, IndicatorChromosome arg1) {
		if(arg0.getFitness()<arg1.getFitness()){ return 1; }
		if(arg0.getFitness()>arg1.getFitness()){ return -1; }
		return 0;
	}

}
